package dtaskboard.client.util;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.DialogBox;

public class OpenDialogCommand implements Command {

  private final DialogBox dialog;

  public OpenDialogCommand(DialogBox d) {
    this.dialog = d;
  }

  @Override
  public void execute() {
    this.dialog.center();
    this.dialog.show();
  }

}
